/*
 * string判断成绩
 */
package switchdemo;

public class Demo5 {
	public static void main(String[] args) {
		int a=77;
		String grade;
		grade=a>=60?(a>=80?(a>=90?"优秀":"良好"):"合格"):"不合格";
		System.out.println(grade);
	}
}